package org.example.afiona.controller;

import org.example.afiona.common.VO.ResultVO;
import org.example.afiona.common.utils.ResultVOUtil;
import org.example.afiona.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: leo
 * @date: 2021/7/5
 */
@RestController
public class MsgController {

    @Autowired
    private IMessageProvider messageProvider;

    @GetMapping("sendMsg")
    public ResultVO sendMsg() {
        messageProvider.send();
        return ResultVOUtil.success();
    }

}
